//
// CLightTrav.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CLightTrav {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CLightTrav(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CLightTrav obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CLightTrav(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CLightTrav(boolean bSmallScene) {
    this(nel3dJNI.new_CLightTrav(bSmallScene), true);
  }

  public void traverse() {
    nel3dJNI.CLightTrav_traverse(swigCPtr, this);
  }

  public void clearLightedList() {
    nel3dJNI.CLightTrav_clearLightedList(swigCPtr, this);
  }

  public void addLightedModel(CTransform m) {
    nel3dJNI.CLightTrav_addLightedModel(swigCPtr, this, CTransform.getCPtr(m), m);
  }

  public void reserveLightedList(long numModels) {
    nel3dJNI.CLightTrav_reserveLightedList(swigCPtr, this, numModels);
  }

  public void addPointLightModel(CPointLightModel pl) {
    nel3dJNI.CLightTrav_addPointLightModel(swigCPtr, this, CPointLightModel.getCPtr(pl), pl);
  }

  public void setLightingSystemEnabled(boolean value) {
    nel3dJNI.CLightTrav_LightingSystemEnabled_set(swigCPtr, this, value);
  }

  public boolean getLightingSystemEnabled() {
    return nel3dJNI.CLightTrav_LightingSystemEnabled_get(swigCPtr, this);
  }

  public void setLightingManager(CLightingManager value) {
    nel3dJNI.CLightTrav_LightingManager_set(swigCPtr, this, CLightingManager.getCPtr(value), value);
  }

  public CLightingManager getLightingManager() {
    return new CLightingManager(nel3dJNI.CLightTrav_LightingManager_get(swigCPtr, this), true);
  }

}
